﻿// -----------------------------------------------------------------------
// <copyright file=DmDonViBusiness company="">
// TODO: dangppsoft@gmail.com
// </copyright>
// -----------------------------------------------------------------------
namespace ManagerClinic.Core.Business
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using ManagerClinic.Core.Common;
    using ManagerClinic.Core.DataAccess;

    public class DmDonViBusiness
    {
        DmDonViDataAccess objDa = null;

        public DmDonViBusiness()
        {
            objDa = new DmDonViDataAccess();
        }

        public bool InsertDmDonVi(DmDonViEntity obj)
        {
            return objDa.InsertDmDonVi(obj);
        }

        public bool EditDmDonVi(DmDonViEntity obj)
        {
            return objDa.EditDmDonVi(obj);
        }

        public bool DeleteDmDonVi(string maDonVi)
        {
            return objDa.DeleteDmDonVi(maDonVi);
        }

        public DmDonViEntity GetDmDonVi(string maDonVi)
        {
            return objDa.GetDmDonVi(maDonVi);
        }

        public IList<DmDonViEntity> GetDmDonViList()
        {
            return objDa.GetDmDonViList();
        }

    }
}